<template>
  <div class="home">
    <el-container>
      <el-header>
        <h3>是辉哥啊</h3>
        <el-button type="info" class="fan">返回</el-button>
      </el-header>
      <el-container>
        <el-aside :width="shisan?'64px':'200px'">
          <deng @zb='zhefan'></deng>
        </el-aside>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script>
import deng from '../components/deng'
export default {
  components:{deng},
  data(){
     return{
       shisan:false
     }
  },
  methods:{
    zhefan(v){
      this.shisan=v
    }
  }
};
</script>

<style lang="less" scoped>
 .el-header, .el-footer {
    background-color: #B3C0D1;
    color: #333;
    display: flex;
  }
  
  .el-aside {
    background-color: #D3DCE6;
    color: #333;
  }
  
  .el-main {
    background-color: #E9EEF3;
    color: #333;
  }
  
   .el-container {
    height: 100%;
  }
  .fan{
    width: 80px;
    height: 40px;
    margin-left: 1200px;
    margin-top: 10px;
  }
 .home{
   height: 100%;
 }
 h3{
   color: pink;
 }
</style>
